Heat the oil in a large frying pan over medium heat. Once the oil is shimmering, add the onion with a pinch of salt and cook until softened, about 6-7 minutes.
Add the garlic, oregano, chili powder, and cumin and cook for 1 minute, stirring frequently. Add in the drained beans, bay leaves, and broth or water. Cook for 5-10 minutes, or until the beans are warmed through.
Using an immersion blender or a potato masher, mash the beans, but leave some beans whole for texture. If the beans appear dry, add more broth or water 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 and cilantro.