Refactored lang url rewrites into plugin