Cleanup installation WebApplication class a bit, removing duplicate code.