Add register factory MACROs.