Remove unnecessary gems