I think this could be accomplished during the compiler pass; I'm going to use Controller annotations as inspiration here. PR forthcoming.