Why it is not possible to declare the reference of the page directly using a macro ?

At the moment , Atlassian does not allow to listen to the event “macro deleted” , then it is not possible to maintain consistency and integrity between references using only macros.