Move the code to retrieve markings into a separate module so we only make a single network request.