There is a mod that provides inverted recipes, which means that the outputs of for example an oil refinery are swapped if you use the inverted recipe. I think this is also the solution to your question here, except I don't know if that can be applied to a boiler or that there needs to be a second, inverted boiler item.