Optimize and cleanup routing function