Refactor a bit the local url conversions using methods and a wrapper enumeration for performance (FELIX-2645)