Move code for type option.