[sailfish] unify covers code

Eliminates a bunch of duplicate code.