Your idea is a maintenance nightmare. The smallest amount of code is NOT the goal. The goal is to be able to have a person who has never seen the code be able to modify it without hassle. Loops to save lines of code are a bad practice. No different than short cryptic variable names: don't do it, be verbose.