Abstract out common attachment attrs in factories.

Addition to https://github.com/alphagov/whitehall/pull/1133