01 - Preheat the oven to 350°F.
02 - In a large skillet over medium heat, cook chopped bacon until golden and crisp, about 5-7 minutes. Remove bacon and set aside, leaving 1 tablespoon fat in the pan.
03 - Add finely chopped onion to the skillet and sauté for 3-4 minutes until softened. Add minced garlic and cook for 1 additional minute.
04 - In a large mixing bowl, combine the drained beans, sautéed onion and garlic, tomato sauce, ketchup, light brown sugar, molasses, Dijon mustard, apple cider vinegar, Worcestershire sauce, smoked paprika, black pepper, and salt. Stir thoroughly to blend all components.
05 - Fold the cooked bacon into the bean mixture, if using.
06 - Transfer the mixture into a 2-quart baking dish, spreading evenly.
07 - Cover the dish with aluminum foil and bake in the preheated oven for 45 minutes.
08 - Remove the foil and continue baking for an additional 15 minutes until the sauce thickens and bubbles.
09 - Allow the baked beans to rest for 10 minutes before serving to enhance flavors and set texture.