Given an irreducible sofic shift
, we show that an irreducible shift of finite type
of lower entropy is a factor of
if and only if it is a factor of
by an open bi-continuing code. If these equivalent conditions hold and
is mixing, then any code from a proper subshift of
to
can be extended to an open bi-continuing code on
. These results are still valid when
is assumed to be only an almost specified shift, i.e., a subshift satisfying an irreducible version of the specification property.