Refactor Drupal building.