Refactor with some constants.