Move some template parameters from class level to function level in assign_value.