Restructure bracket rendering into its own module

TODO: Untangle