Renaming rest methods module to class methods