Route setup is moved to a library