How to get rid of complaining habit

How to get rid of complaining habit

Complaining about bad karma is like going to toilet and instead of flushing it away and let it go you smell it.