Rename restrict_map() to mapif()