How to avoid code repetition and redundancy

join shbcf.ru