Hooray for code duplication