refactor extension libraries