Use a clone of buildRoute closure instead of the closure directly