A source of continuing annoyance; a hindrance.
That which discourages a particular behaviour; a deterrent.