BPMemory: Replace register definition with static member functions in the register structs.