In a large bowl, using an electric hand or stand mixer, cream the softened butter and sugar until light and fluffy. Add the eggs, one at a time, beating until smooth. Scrape down the sides of the bowl as needed. Beat in the vanilla extract. Slowly add the flour mixture and beat only until just combined. In a steady stream, add the cooled cocoa mixture and stir until smooth.