Pass DSL object into route code reference.