West Ham defender Joey O'Brien has withdrawn from the Republic of Ireland squad for their end-of-season matches.