hlint minor code redundancy cleanup