I agree, this is an ugly hack. Global header should be more flexible so we can hook in with styleguide header and modify it. I've created a ticket for that: https://wikia-inc.atlassian.net/browse/DAR-1861