Refactor co2 model to make emission factors work