Move route matching method into the route details class