factored url resolution code into platform