Convert to class methods.