setup: refactor repo format reading and verification