shift inline methods into class definition