Clean up how we initialize the result psobject