Restore removeObjectForKey method definition