Move gems out of scope