Implemented code quality improvements indicated by Code Climate.