Put instance_eval call in a method to allow returning from config