On reducing and deflating subspaces of matrices