Fix duplicated code
Fix duplicated code

removing duplicated code
ooomg/teamform-seed,cswongaq/teamform-seed,cswongaq/teamform-seed,gracewai/teamform-seed,TMDeater/teamform-seed,gracewai/teamform-seed,TMDeater/teamform-seed,ooomg/teamform-seed