Small cleanup in weakperiodicity b.c.