[plugins] director: minor code refactors