Cleanup more cartridge dependencies in ruby and php