Updated Cake factory to reinitialize helpers if modified