Extract methods into a module