Add support for namespace method flattening.