Replace binary with reference to repository