Difficult to comment without knowing all the ins and outs of why they determined the role to be outside before and inside now, but i think your best bet is to leave ASAP.