Consolidate brick rendering

combine brick rendering functions