catalog: move version 1 specific code to version1.rb