Convert some #defines with values like 2**x to enums with bitshifts