Remove use of 'head' and add hlint warning for it