Break-up the Relayout method