extract methods to module