Yeah this needs to be DRY'd up. I think I did move it to app controller once, but it broke some UTIAC stuff. Will try again.