Add removeState to component prototype

I used this code to remove state from my component. Could it be added please?