½ pound (2 sticks) unsalted butter, cubed and softened
1 ripe avocado—halved, pitted and mashed
1 teaspoon vanilla extract
Pinch kosher salt
1 cup confectioners' sugar
Directions
Preheat the oven to 350°. Grease two 9-inch round cake pans. Line the bottoms and sides with parchment paper and grease the parchment. Set aside.
Make the cake: In a medium bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda, salt, coffee, cinnamon, allspice, ancho powder, chipotle powder and habanero powder.
In a large bowl, whisk the milk, oil, eggs and vanilla until thoroughly combined. Fold in the flour mixture, mixing until smooth. Pour the batter into the prepared cake pans and bake until a toothpick or tester inserted into the center of a layer comes out clean, 30 to 35 minutes. Set on a wire rack until slightly cooled, about 10 minutes, then turn them onto the wire rack. Remove the parchment and let the cake layers cool completely.
While the cake is baking, make the buttercream: Fill a medium saucepan with 2 inches of water and set it over medium-low heat. Place the chocolate in a medium bowl and set it on top of the double boiler. Melt the chocolate, stirring occasionally with a rubber spatula, and set aside to let cool to room temperature, 10 to 15 minutes.
In the bowl of a stand mixer fitted with a paddle attachment, beat the butter on medium speed until fluffy, 3 to 4 minutes. Beat in the avocado, vanilla and salt. Reduce the mixer's speed to low and slowly add the confectioners' sugar, beating until fully combined. Add the cooled chocolate, mixing until fully incorporated.
Put one cake layer on a serving plate and frost the top. Stack the second layer and frost the top and sides of the cake. Refrigerate until ready to serve.