Move membership script to migrations