Remove stash connection code and replace it by gem