Macro for defining affecting key-paths