Use a reference to PCF in map functions instead of a reference to a SharedPtr