Better solution for defining automatic app name insertion