Refactor: migrated urls plugin to classes