refactor(deplink): restructured code