DRY things up a bit... @greggersh would be proud!