Separated code, moved to routing component.