Rubocop: Fixing problems in the lib directory