Where can a Trappist-1 planetary system be produced?