In the days of bmi redundancies, ten years ago, there was a matrix in which FOs at the bottom of the MSL were to be made redundant and junior captains were demoted, I think that is legal, but different fleets and bases are a different issue. bmi was a single fleet, so a different story to BA, but nonetheless relevant as the law has changed little since then.