Change OpenPushHelper state to enum from constants.