Looks like you're removing any way to configure the user and password?
What would be useful is to (optionally) parse the username/password from the user's bitcoin.conf, possibly given a datadir (like bitcoin-cli does).