Sounds like poor code planning.