DRYing where possible