Refactoring class methods in compliance with style conventions.