Core: Irlp Configuration

Move all configuration code to a function