Decouple endpoint and method objects