Derive Hash for Method.

Title says it all. Useful/necessary for routers.