You should see the constructions we had to do when I worked in an LBS to mount racks... no two bikes are the same but most rack dimensions are. Small MTBs (like 14" ladies frames were the worst...).
We had a rule about throwing all extra rack/reflector hardware into a box because you would frequently have to frankenstein a rack mount out of those bits.