remove duplication for codeclimate