Extract blacklist and whitelist functions