To be honest, if this was me, I'd remove the beam completely and fill the pocket with mass concrete. Making sure that it is well rammed in so no voids exist between the existing brickwork and the new concrete. Your best bet would be to consult with a local engineer that is familiar will your states building codes and take it from there because you'll also need to look at the existing trimmer beam supporting the second flight from half landing to second floor.
Good luck