simplify extract axes solution