Split resource handler into static router