An effective formalism for testing extensions to General Relativity with gravitational waves