Renaming refresh to handleLayerRefresh