DRY things up a bit