Refactor ASSERT macro.