Plugin Sync: Code restructure
Move file search and create function to a new class