Remove initWithFiles code duplicate.