Condense code