Refactoring moving api to find files to shared plugin.