Is it worth abstracting this? it looks like it's only used once.