They would need to be rewritten as there is no formal extension API. Extensions can call into almost any part of PostgreSQL.