Refactor push_state code
Refactor push_state code

travis-repos/yard,herosky/yard,jreinert/yard,amclain/yard,herosky/yard,ohai/yard,thomthom/yard,lsegal/yard,jreinert/yard,travis-repos/yard,iankronquist/yard,amclain/yard,thomthom/yard,iankronquist/yard,ohai/yard,lsegal/yard,alexdowad/yard,amclain/yard,alexdowad/yard,lsegal/yard,herosky/yard,iankronquist/yard,thomthom/yard,jreinert/yard,ohai/yard,alexdowad/yard