Layer Pruning with Consensus: A Triple-Win Solution