Connecting CO-to-H2 conversion factors to molecular gas properties in nearby barred galaxy centers