AssertionsMacro Refactor

Refactor AssertionsMacro to reduce code duplication.