[Native] Refactor Linker logic for improved readability and modularity