Pull out utility methods into a separate module