Extracted common methods to module