Removed obsolete code, this is handled by the router already.