This and the small entries could be a partial since they're so similar. That way you only need to copy this code once.