Pull out shared methods to a helper module