Sometimes within the amr there is a hukm present and sometimes there is an external factor.
There is hasan lighayrihi, and hasan lidhaatihi
Example
Within wudhoo, and he broke wudhoo, at face value, you are not cleaning anything, and at face value there is negativity around it, but it is still a beautiful act because it is a commandment of Allah and it is now the spiritual aspect that you are aiming to achieve.