Minor refactoring in signs.py