Added router handler factory creation.