Cleans up bases and system config