Factor out constants into constants.h