All I'm doing here is changing a switch to an if to match the structure used in file_proxy.  There is no functional difference whatsoever - I'm just trying to make the two read more symmetrically.