Cleaned session helper and model from deprecated code.