@elemoine : @gjn indicated that it could make sense to create a service for that, since we'll use it in another part of the application (for example in the permalink panel). If this makes sense, I would propose to put this service in permalink.