Refactors success block handling to generic method