A little code cleanup with inflating layouts.