Modularized configuration logic.