I'd prefer to factor out this logic in the module that deals with translations. Is it possible?