refactored the code that pulls a method’s step parameter names from the context