Make modules fit for unit testing.