moved Invoice factory to proper package