Move repeated line in shared scope