The best way to break a bad habit is to make it impractical to do. Increase the friction until you don’t even have the option to act. The brilliance of the cash register was that it automated ethical behavior by making stealing practically impossible. Rather than trying to change the employees, it made the preferred behavior automatic.