port is generated from project_id and remove dead code