Can we extract this to a function? We have this "name calculus" spread all over the application and it would be goof if we can, at least, isolate the behaviour in a function with meaning.