Get rid of the AbstractState class.

- Use the regular transitioning functions definitions instead.