Abstracting out mempool related access to mempool.h as macros