Split parser output into background and theory files