modularize ban system

Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
Merge pull request #5684 from Mloc/bs12-ban

modularize ban system