move blob related code out of repository.jl