Revert "Turn APPEND macro into static function"

This reverts commit eef2ef4fc7b263b52d6e1a75683e249ee0a60393.