Only flatten route callbacks arrays once