Heat the oil in a large frying pan over medium heat. Once the oil is hot, add the garlic. Cook for 1-2 minutes, stirring frequently, until golden brown.
Add the oregano, chili powder, and cumin and cook for 30-60 seconds until fragrant, stirring frequently. Add in the drained beans, bay leaves, and water or broth. Cook for 5-10 minutes, or until the beans are warmed through.
Using an immersion blender or a potato masher, mash most of the beans, but leave some beans whole for texture. If the beans appear dry, add more water or broth as needed to moisten. Continue to cook the beans, stirring often, for 2-4 more minutes.
Season the beans with salt and pepper to taste. Turn off the heat, and stir in the lime juice.