PrepareForParsing should no longer be called with empty code
Reduce code duplication