When Lusitania was built, her construction and operating expenses were subsidised by the British government, with the proviso that she could be converted to an armed merchant cruiser (AMC) if need be.
The Declaration of Paris codified the rules for naval engagements involving civilian vessels.