Revert "Custom variables are applied at error level"

This reverts commit 3cb48f83ec74bc7be07b29c304a0fa2e0f920dc1.
Error metadata lives above individual errors
Compile