Rename type of reason to reasonType