Allow fenced_code to be configurable in subclasses.

Not sure why I was using global variables here. Anyway. Fixed now.
Thanks to Andrew for pointing it out.