[CHORE] Refactor fetching stl file into function.