Each exit path from a function should have appropriate return value.
Check type of method before calling handle_method.

This reduces the complexity a bit.