title: Good style for constructing same object multiple times
body: <p>I have to generate three instances of the same object in my code in different places.</p>
  
  <pre><code>//This puts ship in new location.
  spaceShipLocation location = new PhyiscsEngine();
  </code></pre>
  
  <p>Is it considered bad style to repeat this 3 times in the code or should I wrap it in a method?<br>
  (my intuition says no).   </p>
  
  <p>p.s
  this is for intro to computer science course.</p>