Removed unnecessary function injectStyleSheet() and moved its contents
to the destructor