Only init legacy property environment once

Change-Id: Ida528aca9322f77935411b270fdf182828abab8a