split common methods into a single module