Refactored out class instance methods.