Revert "Send style objects to the template's publish function"

This reverts commit 7b1716ad83db3b383166603b56846119bcf9bfde.