It essentially does something very similar to line 48 of the current master.  While that code block extracts the the value from params, this code block updates the value in params after that value was sanitized.  

The reason map is used is wholly to mimic the current coding style of the project, insofar that the exact same thing is done on line on line 48 of the current master.