Separate dependencies to not build multiple times.