Separates the dependencies per header.