Creates instances in constructors when a context is not required on a fragment.