A person who, immediately before 1 July 2014, is the subject of an order made under section 17 of the 1986 Act and is not transferred to an approved mental health service in accordance with that order, is taken, on and after 1 July 2014, to be the subject of a direction made by the Secretary to the Department of Justice under section 306 of the 2014 Act.