What is all this (above and below) for?  It looks like something that should be in building blocks.

Can you break it out into a separate file, or file a bug to replace it with an appopriate building block?