Fix minor smells detected by codeclimate.