Moved the mongo url replacer to the hateoas module