Moved function generateRecursion and addEntityThroughRecursion from Form/RecurringEntity to BAO/RecurringEntity and their subsequent calls