Full refactor to modularized builds.