Compacted the getters into a macro