A housing rehabilitation loan must be used primarily to make housing comply with applicable state, county, or municipal housing codes or standards, including building, fire, health, housing maintenance, or similar codes.