Remove warning, remove not used variable, and make methods private

Warning: "shadowing outer local variable - routes".