Fixed rubocop's ClassLength warnings.