Refactored :state into separate module

Moved :state in separate Common::State module.