Refactor route component

Change"public property" configuration method to "constructor options"