Refactored getOptionsForPath to getOptions(Request)