Apply patch from 'Tigran Gabrielyan'. Allows you to set the default route class used for all future routes. Fixes #2435