The Lagos refinery is part of a larger deal to build three new refineries and a petrochemical complex in Nigeria .