Adjust class methods according to the ruby style guide