Extracting Ns._process_flavor_params() and creating unit test