DRYing out the application a bit