Refactor parameter/parameter_checker functions.