[BACKLOG-1498] Refactor. Add utility methods in model annotation definition

@bytekast 
I commented on the gist.