Factor out redundant code